package com.cowin.sys.model;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Data
@Table(name = "TM_SYS_RESOURCE")
public class TmSysResource {
    @Id
    @Column(name = "TM_SYS_RESOURCE_ID")
    private Long tmSysResourceId;

    @Column(name = "PARENT_RESOURCE_ID")
    private Long parentResourceId;

    @Column(name = "RESOURCE_TYPE")
    private String resourceType;

    @Column(name = "RESOURCE_PATH")
    private String resourcePath;

    @Column(name = "RES_NAME")
    private String resName;

    @Column(name = "RES_DESC")
    private String resDesc;

    @Column(name = "CONCRETE_RESOURCE")
    private Long concreteResource;

    @Column(name = "SEQUENCE_NUM")
    private BigDecimal sequenceNum;

    @Column(name = "IS_LEAF")
    private Short isLeaf;

    @Column(name = "LAST_UPDATE_TIME")
    private Date lastUpdateTime;

    @Column(name = "LAST_UPDATE_USERNAME")
    private String lastUpdateUsername;

    @Column(name = "PID")
    private Integer pid;

    @Column(name = "PID_IS_CLOSED")
    private Short pidIsClosed;

}